<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/7/27 0027
 * Time: 上午 9:14
 */

namespace app\admin\model;


use think\Model;

class ManagerPickApplygoods extends Model
{
    public function ManagerPickApply(){
        return $this->belongsTo('ManagerPickApply','pick_id','id');
    }

    public static function getMidByid($id){
        $db = self::with('ManagerPickApply')->find($id);
        return $db['manager_pick_apply']['mid'];
    }

    public static function checkMidByid($id,$mid){
        $db = self::with('ManagerPickApply')->find($id);
        if ($db['manager_pick_apply']['mid']!=$mid){
            return true;
        }else{
            return false;
        }
    }


}